import { createRouter, createWebHistory } from 'vue-router'
import Leaflet from '../components/Leaflet.vue'
import OpenLayer from '../components/OpenLayer.vue'
import MapboxRas from '../components/MapboxRas.vue'
import MapboxVec from '../components/MapboxVec.vue'

const routes = [
  {path:'/',redirect:'/Mapbox_ras'},
  { path: '/openlayer', component:OpenLayer  },
  { path: '/leaflet', component: Leaflet },
  { path: '/Mapbox_ras', component: MapboxRas },
  { path: '/Mapbox_vec', component: MapboxVec },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router